package com.gyx.lottery.controller.param;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;
@Data

public class PageParam implements Serializable {

    private Integer currentPage=1;

    private Integer pageSize=10;
    public Integer getOffset(){
        return (currentPage-1)*pageSize;
    }
}
